<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../Libs/FLEA/FLEA/Ajax/jquery.js"></script>
<script language="javascript" type="text/javascript">
function fnOnSubmit(form) {
	form.Save.disabled = true;

	if (form.new_password.value == '' || form.new_password2.value == '') {
		alert('<?php echo h(_T('ui_pu_enter_new_password_tip')); ?>');
		form.Save.disabled = false;
		return false;
	}

	if (form.new_password.value != form.new_password2.value) {
		alert('<?php echo h(_T('ui_u_enter_new_password_not_match')); ?>');
		form.Save.disabled = false;
		return false;
	}

	return true;
}

function checkMsg(response) {
		document.getElementById('adminMsg').innerHTML = response;
}

function dopassDiv(){
	var obj = document.getElementById('passDiv');
	obj.style.display = (obj.style.display=='none')?'block':'none';
}
</script>
<script src="js/checkform.js" type="text/javascript"></script>
<?php $ajax->dumpJs(); ?>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
.STYLE1 {font-weight: bold; font-size: 14px;}
-->
</style>
</head>

<body>
<div id="main_title"><a href="#">后台管理中心</a>—后台管理员权限设置—普通管理员管理</div>
<!--div id="main_title2">| <a href="#">添加帮助文档</a></div-->
<div id="main_content">
  <form id="form1" name="form1" method="post" action="<?php echo $this->_url('EditAdminuser',array($pk => $user[$pk],'access' => ACCESS_ADMIN)); ?>" onsubmit="return fnOnSubmit(this);">
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" style="border: #BBDDE5 1px solid;">
      <tr>
        <td>
		<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
          <tr>
            <td colspan="2" align="center" class="v14">&nbsp;</td>
            </tr>
          <tr>
            <td colspan="2" align="center" class="v14">普通管理员管理</td>
          </tr>
          <tr>
            <td width="50%" align="right" class="title2">管理员帐号：</td>
            <td width="50%" class="content2"><?php echo $user['username']; ?></td>
          </tr>
          <!--<tr>
            <td align="right" class="title2">管理员密码：</td>
            <td class="content2">a1e2da52</td>
          </tr>-->
          <tr>
            <td height="5" colspan="2" align="center" class="title2"><input class="btnB" type="button" name="" id="" value="修改密码" onclick="javascript:document.location.href='<?php echo $this->_url('EditPass',array($pk => $user[$pk],'access' => ACCESS_ADMIN)); ?>'"/></td>
            </tr>
          <tr>
            <td colspan="2" align="center"></td>
            </tr>
        </table></td>
      </tr>
    </table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" style="border: #BBDDE5 1px solid;margin-top: 10px">
      <tr>
        <td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
            <tr>
              <td colspan="5">&nbsp;</td>
            </tr>
            <tr>
              <td width="20%"><input name="access1" type="checkbox" id="access1" value="<?php echo FRONGPAGE_ADMIN; ?>" <?php echo isset($checkbox[FRONGPAGE_ADMIN])?'checked':'' ?> />首页</td>
              <td width="20%"><input name="access2" type="checkbox" id="access2" value="<?php echo PRODUCT_ADMIN; ?>" <?php echo isset($checkbox[PRODUCT_ADMIN])?'checked':'' ?> />产品管理</td>
              <td width="20%"><input name="access3" type="checkbox" id="access3" value="<?php echo LIST_ADMIN; ?>" <?php echo isset($checkbox[LIST_ADMIN])?'checked':'' ?> />列表管理</td>
              <td width="20%"><input name="access4" type="checkbox" id="access4" value="<?php echo ORDER_ADMIN; ?>" <?php echo isset($checkbox[ORDER_ADMIN])?'checked':'' ?> />订单管理</td>
              <td width="20%"><input name="access5" type="checkbox" id="access5" value="<?php echo USER_ADMIN; ?>" <?php echo isset($checkbox[USER_ADMIN])?'checked':'' ?> />用户管理</td>
            </tr>
            <tr>
              <td colspan="5">&nbsp;</td>
            </tr>
            
            
        </table></td>
      </tr>
    </table>
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><button type="submit" class="btnOpen">修　改</button></td>
      </tr>
    </table>
  </form>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
